package com.mf.entity.req;
import java.io.Serial;

import com.mf.groups.GroupsUpdateInterface;
import com.mf.groups.GroupsAddInterface;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import lombok.Data;
    import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalDate;

import lombok.Data;

/**
 *  工单之间的关联关系提交
 * @date 2025-04-21 09:19:55
 */
@Data
public class ReqWorkRelation implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
                    @NotNull(message = "id不能为空", groups = {GroupsUpdateInterface.class})
        @Null(message = "新增id必须为空", groups = {GroupsAddInterface.class})
                                private Integer id;
                                    @Schema(description = "工单类型 1-来料单；2-分拣单；3-撕碎单；4-粉碎单")
                        private String workType;
                                    @Schema(description = "工单id")
                        private Integer workId;
                                    @Schema(description = "工单标识")
                        private String workFlag;
                                    @Schema(description = "关联类型 1-来料单；2-分拣单；3-撕碎单；4-粉碎单")
                        private String relevancyType;
                                    @Schema(description = "关联id")
                        private Integer relevancyId;
                                    @Schema(description = "关联标识")
                        private String relevancyFlag;
                                    @Schema(description = "当前工单是否已完成排程；0-未完成；1-已完成")
                        private Integer status;
                                                                    }
